package com.fhz.day013jetpackall;

import androidx.lifecycle.LiveData;

import com.fhz.day013jetpackall.api.ServiceApi;
import com.fhz.day013jetpackall.entity.Banner;
import com.fhz.day013jetpackall.utils.RetrofitManger;
import com.fhz.utilsfhz.ApiResponse;

import java.util.List;

import javax.inject.Inject;

/**
 * 时间:2022/5/31
 *
 * @author msfeng
 * 简述: 远程数据源
 */
public class BannerRemoteDataSource {

    @Inject
    public BannerRemoteDataSource() {
    }

    public LiveData<ApiResponse<List<Banner>>> getBanner(){
        return RetrofitManger.getInstance().getRetrofit().create(ServiceApi.class).getBanner();
    }

}

